<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>套餐信息</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" type="text/css" href="css/OneMeal.css">

    <link type="text/css" rel="stylesheet" href="css/smartmenu.css">
    <script type="text/javascript" src="jslib/index/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="jslib/index/smartmenu-min.js"></script>
    <script type="text/javascript">
        jQuery(window).ready(function () {
            jQuery("#navigation").Smartmenu({animationDuration:350});
        });
        SyntaxHighlighter.all();
    </script>
</head>
<body style="text-align: center;">
<%@ include file="/page/share/menu.jsp" %>
<div id="content">
<h3>
    请输入需要进行操作的套餐名称
</h3>
<div id="name" style="background: url(../../img/oneMeal.png)"></div>
<form action="Meal!findSpecialMeal.action" method="post" >
    <table align="center" id="select">
        <tr>
            <td align="right">
                套餐名称:
            </td>
            <td>
                <input type="text" name="mealName" size="15"/>
            </td>
            <td align="right">
                节假日:
            </td>
            <td>
                <select name="holiday">
                    <option value="">--请选择--</option>
                    <option value="假日">假日（周五20:00-周日20:00以及法定假期）</option>
                    <option value="平日">平日（周日20:00-周四20:00）</option>
                </select>
            </td>
        </tr>
        <tr>
            <td align="right">开始时段：</td>
            <td>
                <select name="beginTime">
                    <option value="">--请选择--</option>
                    <option value="12:00:00">12:00:00</option>
                    <option value="20:00:00">20:00:00</option>
                    <option value="00:00:00">00:00:00</option>
                </select>
            </td>
            <td align="right">结束时段：</td>
            <td>
                <select name="endTime">
                    <option value="">--请选择--</option>
                    <option value="20:00:00">20:00:00</option>
                    <option value="00:00:00">00:00:00</option>
                    <option value="05:30:00">05:30:00</option>
                </select>
            </td>


        <tr>
        <tr>
        <td></td>
        <td>
            <input type="submit" name="suer" size="15" value="确认" class="btn"/>
        </td>
        </tr>
    </table>
</form>
<form method="post" id="show">
    <table align="center" border="1" cellspacing="0" id="list">
        <thead align="center">
        <tr>
            <td>
                套餐名称
            </td>
            <td>
                节假日
            </td>
            <td>
                套餐使用开始时间
            </td>
            <td>
                套餐使用结束时间
            </td>
            <td>
                情侣房价格
            </td>
            <td>
                标准房价格
            </td>
            <td>
                中房价格
            </td>
            <td>
                大房价格
            </td>
            <td>
                VIP房价格
            </td>
        </tr>
        </thead>
        <tr>
            <s:iterator value="meal" var="m">
        <tr>
            <td>
                <s:property value="#m.mealName"/>
                &nbsp;
            </td>
            <td>
                <s:property value="#m.holiday"/>
                &nbsp;
            </td>
            <td>
                <s:property value="#m.beginTime"/>
                &nbsp;
            </td>
            <td>
                <s:property value="#m.endTime"/>
                &nbsp;
            </td>
            <td>
                <s:property value="#m.coupleRoomPrice"/>
                &nbsp;
            </td>
            <td>
                <s:property value="#m.standardRoomPrice"/>
                &nbsp;
            </td>
            <td>
                <s:property value="#m.middleRoomPrice"/>
                &nbsp;
            </td>
            <td>
                <s:property value="#m.bigRoomPrice"/>
                &nbsp;
            </td>
            <td>
                <s:property value="#m.vipRoomPrice"/>
                &nbsp;
            </td>
        </tr>
        </s:iterator>

        </tr>
    </table>
</form>
<table align="center" id="form2" width="100">
    <thead align="left">
    <tr>
        <th>
            <form action="Meal!findSpecialMeal.action?flag=2" method="post">
                <input type="hidden" name="mealName"
                       value="<s:property value="#m.mealName" />">
                <input type="hidden" name="holiday"
                       value="<s:property value="#m.holiday"/>">
                <input type="hidden" name="beginTime"
                       value="<s:property value="#m.beginTime"/>">
                <input type="hidden" name="endTime"
                       value="<s:property value="#m.endTime"/>">
                <input type="submit" value="删除" class="btn"/>
            </form>
        </th>
        <th>
            <form method="post" action="Meal!findSpecialMeal.action?flag=1">
                <input type="hidden" name="mealName"
                       value="<s:property value="#m.mealName" />">
                <input type="hidden" name="holiday"
                       value="<s:property value="#m.holiday"/>">
                <input type="hidden" name="beginTime"
                       value="<s:property value="#m.beginTime"/>">
                <input type="hidden" name="endTime"
                       value="<s:property value="#m.endTime"/>">
                <input type="submit" value="修改" class="btn"/>
            </form>
        <th>
    <tr>
    </thead>
</table>
</form>
</div>
<div id="bottom">
    <ul>
        <li>
            联系我们：
            <a href="mailto:willsonz@qq.com?subject=KTV综合管理系统">willsonz@qq.com</a>
        </li>
    </ul>
    <ul>
        <li>
            ©&nbsp;Made By Cloud Team.
        </li>
    </ul>
</div>
</body>
</html>
